package com.neusoft.mapper;

import com.neusoft.po.EmpPO;
import com.neusoft.po.LoginPO;
import com.neusoft.vo.ResetVO;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface LoginMapper {

    @Select("SELECT * FROM emp WHERE empno = #{empno} AND pwd=#{pwd}")
    EmpPO LoginCheck(LoginPO po);
    
    @Select("SELECT * FROM emp WHERE email = #{email}")
    EmpPO selectEmail(ResetVO vo);
    
//   重置新密码
    @Update("UPDATE emp SET pwd = #{databasePwd} WHERE email = #{email}")
    int updatePwd(ResetVO vo);
  
}
